import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
import _applyDecoratedDescriptor from "@babel/runtime/helpers/esm/applyDecoratedDescriptor";

var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _class2;

/* eslint-disable no-nested-ternary */

/**
 * PreferenceInfo.js
 * @date 2018/11/27

 */
import React from 'react';
import { Bind } from 'lodash-decorators';
import { Button, Form, Select } from 'antd';
import Lov from 'components/Lov';
import intl from 'utils/intl';
import Main from "./components/Main";
import Content from "./components/Content";
import MaxLenItem from "./components/MaxLenItem";
import styles from "./index.less?modules";
import DateTimeFormat from "./DateTimeFormat";
var itemContentStyle = {
  width: 240
};
var btnStyle = {
  marginLeft: 8
};
var PreferenceInfo = (_dec = Form.create({
  fieldNameProp: null
}), _dec2 = Bind(), _dec3 = Bind(), _dec4 = Bind(), _dec5 = Bind(), _dec6 = Bind(), _dec7 = Bind(), _dec8 = Bind(), _dec9 = Bind(), _dec10 = Bind(), _dec11 = Bind(), _dec12 = Bind(), _dec13 = Bind(), _dec14 = Bind(), _dec15 = Bind(), _dec16 = Bind(), _dec17 = Bind(), _dec18 = Bind(), _dec19 = Bind(), _dec20 = Bind(), _dec(_class = (_class2 = /*#__PURE__*/function (_React$Component) {
  _inherits(PreferenceInfo, _React$Component);

  var _super = _createSuper(PreferenceInfo);

  function PreferenceInfo() {
    var _this;

    _classCallCheck(this, PreferenceInfo);

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    _this = _super.call.apply(_super, [this].concat(args));
    _this.state = {
      timeZoneProps: {
        editing: false
      },
      languageProps: {
        editing: false
      },
      menuProps: {
        editing: false
      },
      roleMergeProps: {
        editing: false
      },
      reminderFlagProps: {
        editing: false
      }
    };
    return _this;
  }

  _createClass(PreferenceInfo, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var initPreference = this.props.initPreference;
      initPreference();
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          userInfo = _this$props.userInfo,
          dateMap = _this$props.dateMap,
          timeMap = _this$props.timeMap,
          onDateFormatUpdate = _this$props.onDateFormatUpdate,
          onTimeFormatUpdate = _this$props.onTimeFormatUpdate,
          updateDateFormatLoading = _this$props.updateDateFormatLoading,
          updateTimeFormatLoading = _this$props.updateTimeFormatLoading;
      return /*#__PURE__*/React.createElement("div", {
        className: styles.preference
      }, /*#__PURE__*/React.createElement(Main, {
        title: intl.get('ciam.userInfo.view.title.main.preferenceSetting').d('偏好设置')
      }, /*#__PURE__*/React.createElement(Content, null, this.renderTimeZone(), this.renderMenuType(), this.renderRoleMerge(), this.renderReminderFlag(), /*#__PURE__*/React.createElement(DateTimeFormat, {
        userInfo: userInfo,
        dateMap: dateMap,
        timeMap: timeMap,
        onDateFormatUpdate: onDateFormatUpdate,
        onTimeFormatUpdate: onTimeFormatUpdate,
        updateDateFormatLoading: updateDateFormatLoading,
        updateTimeFormatLoading: updateTimeFormatLoading
      }))));
    } // time-zone

  }, {
    key: "renderTimeZone",
    value: function renderTimeZone() {
      var _this$props2 = this.props,
          _this$props2$userInfo = _this$props2.userInfo,
          userInfo = _this$props2$userInfo === void 0 ? {} : _this$props2$userInfo,
          form = _this$props2.form,
          updateTimeZoneLoading = _this$props2.updateTimeZoneLoading;
      var _this$state$timeZoneP = this.state.timeZoneProps.editing,
          editing = _this$state$timeZoneP === void 0 ? false : _this$state$timeZoneP;
      var content = userInfo.timeZoneMeaning;
      var comment = intl.get('ciam.userInfo.view.message.timeZone').d('时区首选项，用于用户切换时区');
      var btns = [];

      if (editing) {
        // comment = '';
        content = /*#__PURE__*/React.createElement(React.Fragment, null, form.getFieldDecorator('timeZone', {
          initialValue: userInfo.timeZone
        })( /*#__PURE__*/React.createElement(Lov, {
          code: "CIAM.TIME_ZONE",
          textValue: userInfo.timeZoneMeaning,
          textField: "timeZoneMeaning",
          style: itemContentStyle,
          allowClear: false
        })), /*#__PURE__*/React.createElement(Button, {
          type: "primary",
          style: btnStyle,
          loading: updateTimeZoneLoading,
          onClick: this.handleTimeZoneUpdate
        }, intl.get('cpaas.common.button.save').d('保存')), /*#__PURE__*/React.createElement(Button, {
          style: btnStyle,
          onClick: this.handleTimeZoneEditCancel
        }, intl.get('cpaas.common.button.cancel').d('取消')));
      } else {
        btns.push( /*#__PURE__*/React.createElement(Button, {
          key: "update",
          onClick: this.handleTimeZoneEdit
        }, intl.get('cpaas.common.button.update').d('修改')));
      }

      return /*#__PURE__*/React.createElement(MaxLenItem, {
        key: "time-zone",
        itemIcon: null,
        description: intl.get('ciam.userInfo.model.user.timeZone').d('时区切换'),
        content: content,
        comment: comment,
        btns: btns
      });
    }
  }, {
    key: "handleTimeZoneEdit",
    value: function handleTimeZoneEdit() {
      this.setState({
        timeZoneProps: {
          editing: true
        }
      });
    }
  }, {
    key: "handleTimeZoneEditCancel",
    value: function handleTimeZoneEditCancel() {
      this.setState({
        timeZoneProps: {
          editing: false
        }
      });
    }
  }, {
    key: "handleTimeZoneUpdate",
    value: function handleTimeZoneUpdate() {
      var _this2 = this;

      var form = this.props.form;
      form.validateFields(['timeZone', 'timeZoneMeaning'], function (err, data) {
        var _this2$props = _this2.props,
            onTimeZoneUpdate = _this2$props.onTimeZoneUpdate,
            _this2$props$userInfo = _this2$props.userInfo,
            userInfo = _this2$props$userInfo === void 0 ? {} : _this2$props$userInfo;
        var unUpdateMeaning = data.timeZoneMeaning; // 如果没有改变 Lov, Lov 里面的 timeZoneMeaning(textField) 会为空

        if (userInfo.timeZone === data.timeZone) {
          if (!data.timeZoneMeaning) {
            unUpdateMeaning = userInfo.timeZoneMeaning;
          }
        }

        onTimeZoneUpdate(_objectSpread(_objectSpread({}, data), {}, {
          timeZoneMeaning: unUpdateMeaning
        })).then(function (res) {
          if (res) {
            _this2.handleTimeZoneEditCancel();
          }
        });
      });
    }
  }, {
    key: "findConfigField",
    value: function findConfigField(field, data) {
      if (data.length > 0) {
        var dataFilter = data.find(function (item) {
          return item.value === field;
        });
        return dataFilter !== undefined ? dataFilter.meaning : null;
      }
    } // language

  }, {
    key: "renderLanguage",
    value: function renderLanguage() {
      var _this$props3 = this.props,
          _this$props3$userInfo = _this$props3.userInfo,
          userInfo = _this$props3$userInfo === void 0 ? {} : _this$props3$userInfo,
          _this$props3$language = _this$props3.languageMap,
          languageMap = _this$props3$language === void 0 ? {} : _this$props3$language,
          form = _this$props3.form,
          updateLanguageLoading = _this$props3.updateLanguageLoading;
      var _this$state$languageP = this.state.languageProps.editing,
          editing = _this$state$languageP === void 0 ? false : _this$state$languageP;
      var content = userInfo.languageName;
      var btns = [];
      var comment = intl.get('ciam.userInfo.view.message.language').d('语言首选项，用于用户切换语言');

      if (editing) {
        // comment = '';
        content = /*#__PURE__*/React.createElement(React.Fragment, null, form.getFieldDecorator('language', {
          initialValue: userInfo.language
        })( /*#__PURE__*/React.createElement(Select, {
          style: itemContentStyle
        }, Object.values(languageMap).map(function (item) {
          return /*#__PURE__*/React.createElement(Select.Option, {
            key: item.code,
            value: item.code
          }, item.name);
        }))), /*#__PURE__*/React.createElement(Button, {
          key: "save",
          style: btnStyle,
          loading: updateLanguageLoading,
          onClick: this.handleLanguageUpdate,
          type: "primary"
        }, intl.get('cpaas.common.button.save').d('保存')), /*#__PURE__*/React.createElement(Button, {
          key: "cancel",
          style: btnStyle,
          onClick: this.handleLanguageEditCancel
        }, intl.get('cpaas.common.button.cancel').d('取消')));
      } else {
        btns.push( /*#__PURE__*/React.createElement(Button, {
          key: "update",
          onClick: this.handleLanguageEdit
        }, intl.get('cpaas.common.button.update').d('修改')));
      }

      return /*#__PURE__*/React.createElement(MaxLenItem, {
        itemIcon: null,
        description: intl.get('ciam.userInfo.model.user.language').d('语言切换'),
        content: content,
        comment: comment,
        btns: btns
      });
    }
    /**
     * 菜单布局设置
     */

  }, {
    key: "renderMenuType",
    value: function renderMenuType() {
      var _this$props4 = this.props,
          _this$props4$userInfo = _this$props4.userInfo,
          userInfo = _this$props4$userInfo === void 0 ? {} : _this$props4$userInfo,
          _this$props4$menuMap = _this$props4.menuMap,
          menuMap = _this$props4$menuMap === void 0 ? {} : _this$props4$menuMap,
          form = _this$props4.form,
          updateMenuLoading = _this$props4.updateMenuLoading;
      var _this$state$menuProps = this.state.menuProps.editing,
          editing = _this$state$menuProps === void 0 ? false : _this$state$menuProps;
      var content = this.findConfigField(userInfo.menuLayout, menuMap);
      var comment = intl.get('ciam.userInfo.view.message.menu').d('菜单首选项，选择不同的菜单布局');
      var btns = [];

      if (editing) {
        // comment = '';
        content = /*#__PURE__*/React.createElement(React.Fragment, null, form.getFieldDecorator('menuLayout', {
          initialValue: userInfo.menuLayout
        })( /*#__PURE__*/React.createElement(Select, {
          style: itemContentStyle,
          allowClear: true
        }, Object.values(menuMap).map(function (item) {
          return /*#__PURE__*/React.createElement(Select.Option, {
            key: item.value,
            value: item.value
          }, item.meaning);
        }))), /*#__PURE__*/React.createElement(Button, {
          key: "save",
          style: btnStyle,
          loading: updateMenuLoading,
          onClick: this.handleMenuUpdate,
          type: "primary"
        }, intl.get('cpaas.common.button.save').d('保存')), /*#__PURE__*/React.createElement(Button, {
          key: "cancel",
          style: btnStyle,
          onClick: this.handleMenuEditCancel
        }, intl.get('cpaas.common.button.cancel').d('取消')));
      } else {
        btns.push( /*#__PURE__*/React.createElement(Button, {
          key: "update",
          onClick: this.handleMenuEdit
        }, intl.get('cpaas.common.button.update').d('修改')));
      }

      return /*#__PURE__*/React.createElement(MaxLenItem, {
        itemIcon: null,
        description: intl.get('ciam.userInfo.model.user.menu').d('菜单布局'),
        content: content,
        comment: comment,
        btns: btns
      });
    }
    /**
     * 角色合并设置
     */

  }, {
    key: "renderRoleMerge",
    value: function renderRoleMerge() {
      var _this$props5 = this.props,
          _this$props5$userInfo = _this$props5.userInfo,
          userInfo = _this$props5$userInfo === void 0 ? {} : _this$props5$userInfo,
          _this$props5$roleMerg = _this$props5.roleMergeMap,
          roleMergeMap = _this$props5$roleMerg === void 0 ? {} : _this$props5$roleMerg,
          form = _this$props5.form,
          updateRoleMergeLoading = _this$props5.updateRoleMergeLoading;
      var _this$state$roleMerge = this.state.roleMergeProps.editing,
          editing = _this$state$roleMerge === void 0 ? false : _this$state$roleMerge;
      var content = this.findConfigField(userInfo.roleMergeFlag === 1 ? '1' : userInfo.roleMergeFlag === 0 ? '0' : undefined, roleMergeMap);
      var comment = intl.get('ciam.userInfo.view.message.roleMerge').d('角色合并首选项，选择是否角色合并');
      var btns = [];

      if (editing) {
        // comment = '';
        content = /*#__PURE__*/React.createElement(React.Fragment, null, form.getFieldDecorator('roleMergeFlag', {
          initialValue: userInfo.roleMergeFlag === 1 ? '1' : userInfo.roleMergeFlag === 0 ? '0' : undefined
        })( /*#__PURE__*/React.createElement(Select, {
          style: itemContentStyle,
          allowClear: true
        }, Object.values(roleMergeMap).map(function (item) {
          return /*#__PURE__*/React.createElement(Select.Option, {
            key: item.value,
            value: item.value
          }, item.meaning);
        }))), /*#__PURE__*/React.createElement(Button, {
          key: "save",
          style: btnStyle,
          loading: updateRoleMergeLoading,
          onClick: this.handleRoleMergeUpdate,
          type: "primary"
        }, intl.get('cpaas.common.button.save').d('保存')), /*#__PURE__*/React.createElement(Button, {
          key: "cancel",
          style: btnStyle,
          onClick: this.handleRoleMergeEditCancel
        }, intl.get('cpaas.common.button.cancel').d('取消')));
      } else {
        btns.push( /*#__PURE__*/React.createElement(Button, {
          key: "update",
          onClick: this.handleRoleMergeEdit
        }, intl.get('cpaas.common.button.update').d('修改')));
      }

      return /*#__PURE__*/React.createElement(MaxLenItem, {
        itemIcon: null,
        description: intl.get('ciam.userInfo.model.user.roleMerge').d('角色合并'),
        content: content,
        comment: comment,
        btns: btns
      });
    }
    /**
     * 首页弹窗提醒设置
     */

  }, {
    key: "renderReminderFlag",
    value: function renderReminderFlag() {
      var _this$props6 = this.props,
          form = _this$props6.form,
          userInfo = _this$props6.userInfo,
          _this$props6$reminder = _this$props6.reminderFlagMap,
          reminderFlagMap = _this$props6$reminder === void 0 ? {} : _this$props6$reminder,
          updateReminderFlagLoading = _this$props6.updateReminderFlagLoading;
      var _this$state$reminderF = this.state.reminderFlagProps.editing,
          editing = _this$state$reminderF === void 0 ? false : _this$state$reminderF;
      var content = this.findConfigField(userInfo.popoutReminderFlag === 1 ? '1' : userInfo.popoutReminderFlag === 0 ? '0' : null, reminderFlagMap);
      var btns = [];
      var comment = intl.get('ciam.userInfo.view.message.reminderFlag').d('首页消息弹窗首选项，选择是否开启首页消息弹窗提醒');

      if (editing) {
        content = /*#__PURE__*/React.createElement(React.Fragment, null, form.getFieldDecorator('reminderFlag', {
          initialValue: userInfo.popoutReminderFlag === 1 ? '1' : userInfo.popoutReminderFlag === 0 ? '0' : undefined
        })( /*#__PURE__*/React.createElement(Select, {
          style: itemContentStyle
        }, Object.values(reminderFlagMap).map(function (item) {
          return /*#__PURE__*/React.createElement(Select.Option, {
            key: item.value,
            value: item.value
          }, item.meaning);
        }))), /*#__PURE__*/React.createElement(Button, {
          key: "save",
          style: btnStyle,
          loading: updateReminderFlagLoading,
          onClick: this.handleReminderFlagUpdate,
          type: "primary"
        }, intl.get('cpaas.common.button.save').d('保存')), /*#__PURE__*/React.createElement(Button, {
          key: "cancel",
          style: btnStyle,
          onClick: this.handleReminderFlagEditCancel
        }, intl.get('cpaas.common.button.cancel').d('取消')));
      } else {
        btns.push( /*#__PURE__*/React.createElement(Button, {
          key: "update",
          onClick: this.handleReminderFlagEdit
        }, intl.get('cpaas.common.button.update').d('修改')));
      }

      var description = /*#__PURE__*/React.createElement(React.Fragment, null, intl.get('ciam.userInfo.model.user.reminderFlag').d('首页消息弹窗'));
      return /*#__PURE__*/React.createElement(MaxLenItem, {
        itemIcon: null,
        description: description,
        content: content,
        comment: comment,
        btns: btns
      });
    }
  }, {
    key: "handleLanguageEdit",
    value: function handleLanguageEdit() {
      this.setState({
        languageProps: {
          editing: true
        }
      });
    }
  }, {
    key: "handleLanguageEditCancel",
    value: function handleLanguageEditCancel() {
      this.setState({
        languageProps: {
          editing: false
        }
      });
    }
  }, {
    key: "handleLanguageUpdate",
    value: function handleLanguageUpdate() {
      var _this3 = this;

      var form = this.props.form;
      form.validateFields(['language'], function (err, data) {
        if (!err) {
          var onLanguageUpdate = _this3.props.onLanguageUpdate;
          onLanguageUpdate(data.language).then(function (res) {
            if (res) {
              _this3.handleLanguageEditCancel();
            }
          });
        }
      });
    } // 菜单

  }, {
    key: "handleMenuEdit",
    value: function handleMenuEdit() {
      this.setState({
        menuProps: {
          editing: true
        }
      });
    }
  }, {
    key: "handleMenuEditCancel",
    value: function handleMenuEditCancel() {
      this.setState({
        menuProps: {
          editing: false
        }
      });
    }
  }, {
    key: "handleMenuUpdate",
    value: function handleMenuUpdate() {
      var _this4 = this;

      var form = this.props.form;
      form.validateFields(['menuLayout'], function (err, data) {
        if (!err) {
          var _this4$props = _this4.props,
              onMenuUpdate = _this4$props.onMenuUpdate,
              onRefreshMenu = _this4$props.onRefreshMenu;
          onMenuUpdate(data.menuLayout).then(function (res) {
            if (res) {
              onRefreshMenu(data.menuLayout);

              _this4.handleMenuEditCancel();
            }
          });
        }
      });
    } // 角色合并

  }, {
    key: "handleRoleMergeEdit",
    value: function handleRoleMergeEdit() {
      this.setState({
        roleMergeProps: {
          editing: true
        }
      });
    }
  }, {
    key: "handleRoleMergeEditCancel",
    value: function handleRoleMergeEditCancel() {
      this.setState({
        roleMergeProps: {
          editing: false
        }
      });
    }
  }, {
    key: "handleRoleMergeUpdate",
    value: function handleRoleMergeUpdate() {
      var _this5 = this;

      var form = this.props.form;
      form.validateFields(['roleMergeFlag'], function (err, data) {
        if (!err) {
          var onRoleMergeUpdate = _this5.props.onRoleMergeUpdate;
          onRoleMergeUpdate(data.roleMergeFlag).then(function (res) {
            if (res) {
              _this5.handleRoleMergeEditCancel();
            }
          });
        }
      });
    }
    /**
     * 修改首页消息弹窗设置
     */

  }, {
    key: "handleReminderFlagEdit",
    value: function handleReminderFlagEdit() {
      this.setState({
        reminderFlagProps: {
          editing: true
        }
      });
    }
    /**
     * 取消首页消息弹窗设置修改
     */

  }, {
    key: "handleReminderFlagEditCancel",
    value: function handleReminderFlagEditCancel() {
      this.setState({
        reminderFlagProps: {
          editing: false
        }
      });
    }
    /**
     * 更新首页消息弹窗设置
     */

  }, {
    key: "handleReminderFlagUpdate",
    value: function handleReminderFlagUpdate() {
      var _this6 = this;

      var form = this.props.form;
      form.validateFields(['reminderFlag'], function (err, data) {
        if (!err) {
          var onReminderFlagUpdate = _this6.props.onReminderFlagUpdate;
          onReminderFlagUpdate(data.reminderFlag).then(function (res) {
            if (res) {
              _this6.handleReminderFlagEditCancel();
            }
          });
        }
      });
    }
  }]);

  return PreferenceInfo;
}(React.Component), (_applyDecoratedDescriptor(_class2.prototype, "handleTimeZoneEdit", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, "handleTimeZoneEdit"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleTimeZoneEditCancel", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, "handleTimeZoneEditCancel"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleTimeZoneUpdate", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, "handleTimeZoneUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "findConfigField", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "findConfigField"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "renderMenuType", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "renderMenuType"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "renderRoleMerge", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "renderRoleMerge"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "renderReminderFlag", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "renderReminderFlag"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleLanguageEdit", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "handleLanguageEdit"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleLanguageEditCancel", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "handleLanguageEditCancel"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleLanguageUpdate", [_dec11], Object.getOwnPropertyDescriptor(_class2.prototype, "handleLanguageUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleMenuEdit", [_dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "handleMenuEdit"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleMenuEditCancel", [_dec13], Object.getOwnPropertyDescriptor(_class2.prototype, "handleMenuEditCancel"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleMenuUpdate", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, "handleMenuUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRoleMergeEdit", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRoleMergeEdit"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRoleMergeEditCancel", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRoleMergeEditCancel"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleRoleMergeUpdate", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, "handleRoleMergeUpdate"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleReminderFlagEdit", [_dec18], Object.getOwnPropertyDescriptor(_class2.prototype, "handleReminderFlagEdit"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleReminderFlagEditCancel", [_dec19], Object.getOwnPropertyDescriptor(_class2.prototype, "handleReminderFlagEditCancel"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "handleReminderFlagUpdate", [_dec20], Object.getOwnPropertyDescriptor(_class2.prototype, "handleReminderFlagUpdate"), _class2.prototype)), _class2)) || _class);
export { PreferenceInfo as default };